<%--
  Created by IntelliJ IDEA.
  User: HX
  Date: 2021/1/25
  Time: 21:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <table border="1" align="center" width="50%" cellspacing="0">
        <tr bgcolor="red">
            <th>编号</th>
            <th>姓名</th>
            <th>密码</th>
            <th>性别</th>
        </tr>
        <c:forEach var="user" items="${list}" varStatus="status">

            <tr align="center" bgcolor="yellow">
                <td>${status.count}</td>
                <td>${user.username}</td>
                <td>${user.pwd}</td>
                <td>${user.gender}</td>
            </tr>


        </c:forEach>




    </table>
    <a href="${pageContext.request.contextPath}/index.jsp">返回首页</a>




</body>
</html>
